-- GENERATED SPELL FOR [Vekniss Warrior] --


function spell0_15230(pUnit, Event) --@Summon Vekniss Borer,Self--
pUnit:FullCastSpellOnTarget(6122,pUnit)
pUnit:RegisterEvent('Sorts_15230', 528, 1)
end

function Sorts_15230(pUnit, Event)
local choix_sorts_15230 = math.random(0, 0)
if choix_sorts_15230 == 0 then
pUnit:RegisterEvent('spell0_15230', 1, 1)
end
end

function mob15230_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15230', math.random(1500, 3000), 1)
end

function mob15230_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15230_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15230_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15230, 1, 'mob15230_Action')
RegisterUnitEvent(15230, 2, 'mob15230_Leave')
RegisterUnitEvent(15230, 3, 'mob15230_Kill')
RegisterUnitEvent(15230, 4, 'mob15230_Die')
